const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 关闭eslint检查
  lintOnSave: false,
  // 对开发服务器进行配置
  devServer: {
    port: 8080,
    open: true,
    host: 'localhost',
    // 配置代理
    proxy: {
      '/test': {
        target: 'http://localhost:15666',
        // 重写地址的规则
        pathRewrite: {'/wanxiang': ''}
      },
      '/api': {
        target: 'http://localhost:21000',
        pathRewrite: {'/dingxiang': ''}
      }
    }
  }
})
